package com.bloody.android;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class ChallengeAbilityGiver extends ChallengeAbility{

	@Override
	public void onClick(View view) {
		int button;
		if (view == super.getButton1()) {
			button=0;
		}
		else if (view == super.getButton2()) {
			button=1;
		}
		else {
			button=2;
		}
		Bundle bundle = new Bundle();
		bundle.putInt("challenge", button);
		Intent mIntent = new Intent();
		mIntent.putExtras(bundle);
		setResult(BloodyCrusadeGame.RES_GIVERABILITY, mIntent);
		finish();
	}		
}
